package cn.edu.cdu.farmdeal.service;

import cn.edu.cdu.farmdeal.domain.UserInf;

/**
 * @Author: tupeng
 * @Date: 2020/3/12
 **/
public interface UserService {
    /**
     * 检查用户名
     * @param userName
     * @return boolean
     */
    Boolean checkUser(String userName);

    /**
     * 注册
     * @param userInf
     * @return
     */
    int register(UserInf userInf);

    /**
     * 获得pass
     * @param userInf
     * @return String
     */
    String getPassByName(UserInf userInf) throws IndexOutOfBoundsException;

}
